<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.util.TimeUtil"%>
<%@page import="com.infomanage.service.worklog.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    
    DutypersonItem item = DutyPersonService.loadDutyperson(request, response, out);
    String beginTime = "";
    String endTime = "";
    int masterPersonId = -1;
    int slavePersonId = -1;
    int attendantPersonId = -1;
    int dispatcherPersonId = -1;
    String masterPersonName = "";
    String slavePersonName = "";
    String attendantPersonName = "";
    String dispatcherPersonName = "";
    if(item != null) {
    	Dutyperson bean = item.getBean();
    	masterPersonId = bean.getMasterPersonId();
    	slavePersonId = bean.getSlavePersonId();
    	Person masterPerson = item.getMasterPerson();
    	Person slavePerson = item.getSlavePerson();
    	Person attendantPerson = item.getAttendantPerson();
    	Person dispatcherPerson = item.getDispatcherPerson();
    	masterPersonName = masterPerson.getName();
    	slavePersonName = slavePerson.getName();
    	attendantPersonName = attendantPerson.getName();
    	dispatcherPersonName = dispatcherPerson.getName();
    	beginTime = bean.getBeginTime();
    	endTime = bean.getEndTime();
    } 
%>
<html>
<head>
	<title>值班人员</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<link href="../../css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../../js/calendar.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<form name="form1" action="dutyPerson_action.jsp" method="post" target="actionFrame">
	<input type="hidden" name="itemId" value="<%=itemId%>">
	<input type="hidden" name="actionType">
    <input type="hidden" name="beginTime">
    <input type="hidden" name="endTime">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>值班人员</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable" style="table-layout: fixed;" border="0">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							值班开始时间
						</td>
						<td>
							<%=TimeUtil.toFullTime(beginTime) %>
						</td>
					</tr>
					<tr>
						<td class="field">
							值班结束时间
						</td>
						<td>
							<%=TimeUtil.toFullTime(endTime) %>
						</td>
					</tr>
					<tr style="height:50px">
						<td class="field">
							主官
						</td>
						<td>
							<%= masterPersonName%>
						</td>
					</tr>
					<tr style="height:50px">
						<td class="field" >
							副官
						</td>
						<td>
							<%=slavePersonName %>
						</td>
					</tr>
					<tr style="height:50px">
						<td class="field">
							值班员
						</td>
						<td>
							<%= attendantPersonName%>
						</td>
					</tr>
					<tr style="height:50px">
						<td class="field">
							调度员
						</td>
						<td>
							<%=dispatcherPersonName %>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="window.print();">打印</span>
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>